﻿using IterationLife.System.Models;
using Util.Datas.Ef;

namespace IterationLife.Datas.Mappings.Systems
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class VerificationCodeMap : AggregateRootMapBase<VerificationCode>
    {
        /// <summary>
        /// 映射表
        /// </summary>
        protected override void MapTable()
        {
            ToTable("VerificationCodes", "System");
        }

        /// <summary>
        /// 映射属性
        /// </summary>
        protected override void MapProperties()
        {
            //验证码编号
            Property(t => t.Id)
                .HasColumnName("VerificationCodeId");
        }

        /// <summary>
        /// 映射导航属性
        /// </summary>
        protected override void MapAssociations()
        {
        }
    }
}
